<!--
*Author：富行天下团队
 
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/slipData/slipData.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/slipData/slipData.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '泰旅通滑',
        name: 'slipData',
        url: '/slipData/',
        sortName: 'id',
      },
      extend: extend,
      editFormFields: {
        VotingCode: '',
        Code: '',
        Code1: '',
        Code2: '',
        Code3: '',
        SkuName: '',
        VipImageUrl: '',
        SnowName: '',
        SnowUrl: '',
        AliyunOSSImg: [],
        RealIdCard: '',
        RealName: '',
        RealPhone: '',
        VipPhone: '',
        VipIdCard: '',
        VipName: '',
      },
      editFormOptions: [],
      searchFormFields: {},
      searchFormOptions: [],
      columns: [
        { field: 'id', title: 'id', type: 'int', width: 90, hidden: true, readonly: true, require: true, align: 'left' },
        { field: 'VotingCode', title: '核销码', type: 'string', width: 220, align: 'left', sortable: true },
        { field: 'Code', title: '卡唯一id', type: 'string', width: 220, align: 'left' },
        { field: 'Code1', title: '卡面号', type: 'string', width: 220, align: 'left' },
        { field: 'Code2', title: '14443A', type: 'string', width: 220, align: 'left' },
        { field: 'Code3', title: '15693', type: 'string', width: 220, align: 'left' },
        { field: 'SkuName', title: '商品名称', type: 'string', width: 220, align: 'left' },
        { field: 'RealIdCard', title: '使用人证件号', type: 'string', width: 220, align: 'left' },
        { field: 'RealName', title: '使用人姓名', type: 'string', width: 220, align: 'left' },
        { field: 'RealPhone', title: '使用人电话', type: 'string', width: 220, align: 'left' },
        { field: 'VipPhone', title: '绑定人电话', type: 'string', width: 220, align: 'left' },
        { field: 'VipIdCard', title: '绑定人身份证号', type: 'string', width: 220, align: 'left' },
        { field: 'VipName', title: '绑定人名称', type: 'string', width: 220, align: 'left' },
        { field: 'VipImageUrl', title: '绑定人照片', type: 'string', width: 220, align: 'left' },
        { field: 'SnowName', title: '雪场名称', type: 'string', width: 220, align: 'left' },
        { field: 'SnowUrl', title: '雪场Ip地址', type: 'string', width: 220, align: 'left' },
        { field: 'AliyunOSSImg', title: '图片地址', type: 'imgupgrade', width: 220, align: 'left' },
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
